package com.xia.netty.thread.basic;

public class InterruptExample {
    public static class MythreadTest extends Thread{


        @Override
        public void run() {
            try {
                while (!interrupted()){
                    System.out.println("执行循环体");
                }
                System.out.println("Thread run end");
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
}
